import request from '@/utils/request'


// 获取文章列表-达人/进阶学习/常见问题
export function getArticleList(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/articleList.html',
    method: 'post',
    data: query
  })
}

// 文章上下架状态-达人/进阶学习/常见问题
export function articleStatus(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/changeStatus.html',
    method: 'post',
    data: query
  })
}


// 添加文章-达人/进阶学习/常见问题
export function addArticle(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/insertArticle.html',
    method: 'post',
    data: query
  })
}

// 删除文章-达人/进阶学习/常见问题
export function deleteArticle(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/deleteArticle.html',
    method: 'post',
    data: query
  })
}

// 修改文章-达人/进阶学习/常见问题
export function updateArticle(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/updateArticle.html',
    method: 'post',
    data: query
  })
}

// 获取详情-达人
export function getTalent(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/articleDetail.html',
    method: 'post',
    data: query
  })
}

// 获取详情-进阶学习
export function getAdLearning(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/articleAdvDetail.html',
    method: 'post',
    data: query
  })
}

// 获取详情-常见问题
export function getFaq(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/articleQuestionDetail.html',
    method: 'post',
    data: query
  })
}

// 达人-审核
export function audit(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupArticleProvider/1.0.0/audit.html',
    method: 'post',
    data: query
  })
}

